<?php

namespace App\Enums;

enum OrderLogAction : string
{
    //添加商品
    case AddGoods = 'add_goods';

    //商品数量变更
    case ChangeGoodsQuantity = 'change_goods_quantity';

    //助教停止计时
    case StopAssistantTiming = 'stop_assistant_timing';

    //台桌停止计时
    case StopTableTiming = 'stop_table_timing';

    //挂单
    case PendingOrder = 'pending_order';

    public function label()
    {
        return match ($this) {
            self::AddGoods => '添加商品',
            self::ChangeGoodsQuantity => '商品数量变更',
            self::StopAssistantTiming => '助教停止计时',
            self::StopTableTiming => '台桌停止计时',
            self::PendingOrder => '挂单',
        };
    }
}
